<?php
include "../../public/common/config.php";

$id = $_GET['id'];
$sql = "select * from status where id={$id}";
$result = mysql_query($sql);
$row = mysql_fetch_assoc($result);
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="../public/css/common.css"/>
	</head>
	<body>
		<div class="main">
			<form action="update.php" method="post">
				<p>状态名称：<input type="text" name="name" value="<?php echo $row['name']?>" /></p>
				<input type="hidden" name="id" value="<?php echo $row['id']?>" />
				<p><input type="submit" value="修改"/></p>
			</form>
		</div>
	</body>
	
</html>